package main

import "fmt"

func main() {
	var coffeePrice = 4.50
	fmt.Println("Coffee price:", coffeePrice)

	fmt.Println("Memory address of price 4.50", &coffeePrice)
	coffeePrice = 5.00
	fmt.Println("Memory address of price 5.00", &coffeePrice)
	// pointerToCoffeePrice := &coffeePrice
	var pointerToCoffeePrice *float64 = &coffeePrice
	fmt.Println("Memory address of pointer to coffeePrice 5.00", pointerToCoffeePrice)

	*pointerToCoffeePrice = 7.50
	fmt.Println("Updated CoffeePrice value in memory:", coffeePrice)

}
